package com.car.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.car.model.common.dtos.ResponseResult;
import com.car.model.component.dtos.ComClassifyDto;
import com.car.model.component.pojos.ComClassify;
import com.car.model.component.pojos.ComClassify2;
import org.springframework.web.multipart.MultipartFile;


public interface ComClassify2Service extends IService<ComClassify2> {
    /**
     * 根据条件分页查询
     * @return
     */
    ResponseResult<ComClassify2> find2ClassifyById(Integer classifyId);

    /**
     * 修改配件分类
     * @param classify
     * @return
     */
    ResponseResult updateClassify(ComClassify2 classify);

    /**
     * 根据id删除
     * @param id
     * @return
     */
    ResponseResult delete(Integer id);

    /**
     * 上传图片
     * @param multipartFile
     * @return
     */
    ResponseResult uploadPicture(MultipartFile multipartFile);

    /**
     * 新增二级分类
     * @param classify
     * @return
     */
    ResponseResult saveClassify(ComClassify2 classify);
}
